package com.ruoyi.wp.service.impl;


import com.ruoyi.wp.domain.IDoctorPatient;
import com.ruoyi.wp.mapper.IDoctorPatientMapper;
import com.ruoyi.wp.service.IDoctorPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IDoctorPatientServiceImpl implements IDoctorPatientService {

    @Autowired
    private IDoctorPatientMapper patientMapper;


    @Override
    public IDoctorPatient selectCard(IDoctorPatient doctorPatient) {
        return patientMapper.selectByCard(doctorPatient);
    }

    @Override
    public IDoctorPatient insertadd(IDoctorPatient doctorPatient) {
        int i = patientMapper.insertDoctorPatient(doctorPatient);
        System.out.println("i = " + i);
        if (i>0){
            return doctorPatient;
        }
        return null;
    }
}
